package com.sgb.member.event;

/**
 * Description:
 * Author zhengkewen
 * Time 2018/1/2
 */
public class MemberEvent {
    int messageTag;
    Object messageData;
    int pos;

    public static MemberEvent make() {
        return new MemberEvent();
    }

    public static MemberEvent make(int tag, Object object) {
        MemberEvent message = new MemberEvent();
        return message.setMessageData(object).setMessageTag(tag);
    }

    public int getMessageTag() {
        return messageTag;
    }

    public MemberEvent setMessageTag(int messageTag) {
        this.messageTag = messageTag;
        return this;
    }

    public Object getMessageData() {
        return messageData;
    }

    public MemberEvent setMessageData(Object messageData) {
        this.messageData = messageData;
        return this;
    }

    public MemberEvent setPos(int pos) {
        this.pos = pos;
        return this;
    }

    public int getPos() {
        return pos;
    }
}
